TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt


#SYSROOT=/opt/petalinux/2020.1/sysroots/aarch64-xilinx-linux
SYSROOT=/opt/sdk-ai/sysroots/aarch64-xilinx-linux

INCLUDEPATH += \
               $${SYSROOT}/usr/include/opencv \
               $${SYSROOT}/usr/include/opencv2 \
#               $${SYSROOT}/usr/include/gstreamer-1.0 \
#              $${SYSROOT}/usr/lib/gstreamer-1.0/include \
#              $${SYSROOT}/usr/include/glib-2.0 \
#             $${SYSROOT}/usr/lib/glib-2.0/include \
              $${SYSROOT}/usr/include/drm \
              $${SYSROOT}/usr/include/libkms/

LIBS += \
        $${SYSROOT}/usr/lib/libopencv_*.so.* \
        -L$${SYSROOT}/usr/lib \
        -lgstreamer-1.0 \
        -lgstapp-1.0 \
        -lgobject-2.0 \
        -lglib-2.0 \
        -ldrm \
        -lkms \
        -lpthread

SOURCES += \
        main.cpp \
    v4l2_drv/v4l2_capture.cpp \
    drm_pipe/pipe_stream.cpp \
    drm_pipe/pipe_merge.cpp \
    display_mode.cpp \
    drm_drv/drm_plane_drv.c \
    net_protocol/TCPServer.cpp

HEADERS += \
    v4l2_drv/v4l2_capture.h \
    drm_pipe/pipe_stream.h \
    drm_pipe/pipe_merge.h \
    display_mode.h \
    drm_drv/drm_plane_drv.h \
    net_protocol/config_protocol.h \
    net_protocol/TCPServer.h

target.path = /home/root
INSTALLS += target
